﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OverLoadDemo
{
    class SumUtils
    {
        int a, b;
        double c, d;
        string e, f;
        int num;
        public int numSum(int a,int b)
        {
            return a + b;
        }
        public double numSum(double c,double d)
        {
            return c+d;
        }
        public string numSum(string e, string f)
        {
            return e+f;
        }
        public int numSum(int num)
        {
            int sum= 0;
            for (int i = 1; i <= num; i++)
            {
                sum += i;
            }
            return sum;
        }
    }
}
